<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" close="true">
        <span aria-hidden="true">×</span>
    </button>
    <h4 class="modal-title">
        <span class="fa fa-legal"></span>&nbsp;添加权限
    </h4>
</div>
<style>


</style>
<div class="modal-body">

    <div class="new-content">
    <form name="add_form" class="form-horizontal layui-form">
        <div class="form-group">
            <label class="col-sm-2 control-label">*权限名称:</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" name="name" placeholder="权限名称">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">权限描述:</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" name="desc" placeholder="权限描述">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">key:</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" name="key" placeholder="key">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">状态:</label>
            <div class="col-sm-8">
                <select name="status">
                    <option value="1">启用</option>
                    <option value="2">禁用</option>
                </select>
            </div>
        </div>

    </form>
    </div>

</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default btn-sm" close="true">关闭</button>
    <button type="button" class="btn btn-primary btn-sm" _event="add">保存</button>
</div>
<script>
    layui.use(['form'], function() {
        var form = layui.form
            , layer = layui.layer;
        var layedit = layui.layedit;
        var  tree = layui.tree;
        var util = layui.util;

        layui.form.render('select');
        form.render();
    });
</script>